<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图片修改</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script type="text/javascript" src="template/images/form.js"></script>
<?php
	$tech_num = (count($tech_arr)-1);
	$show_tech = $tech_arr[rand(0,$tech_num)];
?>
<!--
<script type="text/javascript">

	$(document).ready(function(){
		$str = '<?php echo $show_tech;?>';
		$('#show_tech').html("<em>小提示：</em>"+$str).fadeIn('slow');
	});

</script>
-->
</head>

<body>
<div class="admin_position"><span>当前位置 > 修改图片</span><p id="show_tech" style="display:none"></p></div><!--位置-->
<div class="admin_fh"><a href="?">返回</a></div>

<div class="order_contain">
	<form name="add_cata" action="?" method="post" class="form" enctype="multipart/form-data">
	<div class="order_main">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数</th><th style="width:80%">参数值</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1" style="text-align:center">图片名称：</td><td style="width:80%"><a href="<?php echo $img;?>" target="_blank"><img src="<?php echo $img;?>" border="0" width="90" height="90" style="padding:1px; border:1px solid #ddd" /></a></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">缩略图：</td><td style="width:80%"><input type="radio" name="is_thumb" value="1" style="margin:0 5px;border:0"/>是<input type="radio" value="0" name="is_thumb" style="margin:0 5px; border:0"  checked="checked"/>否&nbsp;&nbsp;&nbsp;<span style="color:#0000CC">重新生成缩略图选择'是',只修改信息选择'否'</span></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">缩略图大小：</td><td style="width:80%"><input type="text" style="width:50px;" name="thumb_width" value="<?php echo $_sys['thump_width'];?>" />宽&nbsp;&nbsp;<input type="text" name="thumb_height" style="width:50px;" value="<?php echo $_sys['thump_height'];?>" />高&nbsp;&nbsp;&nbsp;<span style="color:#0000CC">只在生成缩略图时起作用</span></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">图片alt：</td><td style="width:80%"><input type="text" value="<?php echo $rel[0]['pic_alt'];?>" style="width:200px;" name="pic_alt" /></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">重新上传：</td><td style="width:80%"><input type="file" value="" style="width:200px;" name="new_pic" />新上传的图片会使用原图片的名称，后缀名不会更改，建议使用和原图片一样的后缀名</td>
		</tr>
		</tbody>
 </table>
 </div>
<div class="order_btn">
<input type="hidden" name="action" value="save_edit"/><input type="hidden" name="pic_cate" value="<?php echo $rel[0]['pic_cate'];?>" /><input type="hidden" name="pic_path" value="<?php echo $rel[0]['pic_path'];?>" /><input type="hidden" name="pic_name" value="<?php echo $rel[0]['pic_name'];?>" /><input type="hidden" name="pic" value="<?php echo $pic;?>" /><input type="hidden" name="pic_ext" value="<?php echo $rel[0]['pic_ext'];?>" /><input type="hidden" name="id" value="<?php echo $rel[0]['id'];?>"/><input type="hidden" value="<?php echo $rel[0]['pic_thumb'];?>" name="pic_thumb"/>
  <input type="submit" value="确定" name="xg_category" class="go"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
 </div>
 </form>
</div>

</body>
</html>
